package commons;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageRang {
	// 页码号
	private int pageNumber;
	// 每页记录数
	private int pageSize;
	// 页面索引
	private int pageIndex;

	public PageRang(int pageNumber, int pageSize) {
		super();
		this.pageNumber = pageNumber;
		this.pageSize = pageSize;
		this.pageIndex = (pageNumber - 1) * pageSize;
	}
	}

